//
//  migrate.swift
//  App
//
//  Created by melvyn on 2018/8/22.
//

import Vapor
import FluentSQLite
import FluentPostgreSQL

public func migrate(migrations: inout MigrationConfig) throws {
    
    migrations.add(model: User.self, database: .sqlite)
    migrations.add(model: LiveStream.self, database: .sqlite)
    migrations.add(model: Token.self, database: .sqlite)
    migrations.add(model: Comment.self, database: .sqlite)
    
    User.Public.defaultDatabase = .sqlite
    LiveStream.FormData.defaultDatabase = .sqlite
}
